<?php /* Smarty version 2.6.26, created on 2014-11-09 18:22:42
         compiled from answer.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'date_format', 'answer.html', 39, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>后盾问答</title>
	<meta name="keywords" content="后盾问答"/>
	<meta name="description" content="后盾问答"/>
	<link rel="stylesheet" href="<?php echo @__VIEW__; ?>
IndexStyle/Css/common.css" />
	<script type="text/javascript" src='<?php echo @__VIEW__; ?>
IndexStyle/Js/jquery-1.7.2.min.js'></script>
	<script type="text/javascript" src='<?php echo @__VIEW__; ?>
IndexStyle/Js/top-bar.js'></script>
	<link rel="stylesheet" href="<?php echo @__VIEW__; ?>
IndexStyle/Css/question.css" />
	<script type="text/javascript" src="<?php echo @__VIEW__; ?>
IndexStyle/Js/question.js"></script>
</head>
<body>
	<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => '../Public/header.html', 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<!-- top 结束-->
	<div id='location'>
		<a href="">全部分类</a>
			&gt;&nbsp;电脑&nbsp;&nbsp;
			&gt;&nbsp;<a href="">硬件</a>&nbsp;&nbsp;
	</div>

<!--------------------中部-------------------->
	<div id='center-wrap'>
		<div id='center'>
			<div id='left'>
				<div id='answer-info'>
					<!-- 如果没有解决用wait -->
					<div class='ans-state <?php if ($this->_tpl_vars['ask']['state'] == 0): ?> wait <?php endif; ?>'></div>
					<div class='answer'>
						<p class='ans-title'><?php echo $this->_tpl_vars['ask']['ask_content']; ?>

							<b class='point'><?php echo $this->_tpl_vars['ask']['ask_gold']; ?>
</b>
						</p>
					</div>
					
					<ul>
						<li><a href=""><?php echo $this->_tpl_vars['user']['account']; ?>
</a></li>
						<li><i class='level lv<?php echo $this->_tpl_vars['user']['level']; ?>
' title='Level <?php echo $this->_tpl_vars['user']['level']; ?>
'></i></li>
						<li><?php echo ((is_array($_tmp=$this->_tpl_vars['ask']['ask_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %R') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %R')); ?>
</li>
				
					</ul>
					<?php if ($this->_tpl_vars['user']['uid'] == $_SESSION['id']): ?>
					<?php else: ?>
					<?php if ($this->_tpl_vars['ask']['state'] == 0): ?>
					<?php if ($_SESSION['id']): ?>
					<div class='ianswer'>
						<form action="" method='POST'>
							<p>我来回答</p>
							<textarea name="ans_content"></textarea>
							<input type="hidden" name='ask_id' value='<?php echo $this->_tpl_vars['ask']['ask_id']; ?>
'>
							<input type="submit" value='提交回答' id='anw-sub'/>
						</form>
					</div>
					<?php endif; ?>
					<?php else: ?>
					<?php endif; ?>
					<?php endif; ?>
					<?php if ($this->_tpl_vars['ask']['state'] == 1): ?>
					<!-- 满意回答 -->

					<div class='ans-right'>
						<p class='title'><i></i><?php echo $this->_tpl_vars['accept']['ans_content']; ?>
<span></span></p>
						<!-- <p class='ans-cons'>很不错！</p> -->
						<dl>
							<dt>
								<a href=""><img src="./Images/noface.gif" width='48' height='48'/></a>
							</dt>
							<dd>
								<a href=""><?php echo $this->_tpl_vars['users']['account']; ?>
</a>
							</dd>
							<dd><i class='level lv1'></i></dd>
							<dd>20%</dd>
						</dl>
					</div>
					<?php endif; ?>
					<!-- 满意回答 -->
				</div>
				<div id='all-answer'>
					<div class='ans-icon'></div>
					<p class='title'>共 <strong></strong> 条回答</p>
					<ul>
						<?php unset($this->_sections['Info']);
$this->_sections['Info']['loop'] = is_array($_loop=$this->_tpl_vars['ansInfo']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['Info']['name'] = 'Info';
$this->_sections['Info']['show'] = true;
$this->_sections['Info']['max'] = $this->_sections['Info']['loop'];
$this->_sections['Info']['step'] = 1;
$this->_sections['Info']['start'] = $this->_sections['Info']['step'] > 0 ? 0 : $this->_sections['Info']['loop']-1;
if ($this->_sections['Info']['show']) {
    $this->_sections['Info']['total'] = $this->_sections['Info']['loop'];
    if ($this->_sections['Info']['total'] == 0)
        $this->_sections['Info']['show'] = false;
} else
    $this->_sections['Info']['total'] = 0;
if ($this->_sections['Info']['show']):

            for ($this->_sections['Info']['index'] = $this->_sections['Info']['start'], $this->_sections['Info']['iteration'] = 1;
                 $this->_sections['Info']['iteration'] <= $this->_sections['Info']['total'];
                 $this->_sections['Info']['index'] += $this->_sections['Info']['step'], $this->_sections['Info']['iteration']++):
$this->_sections['Info']['rownum'] = $this->_sections['Info']['iteration'];
$this->_sections['Info']['index_prev'] = $this->_sections['Info']['index'] - $this->_sections['Info']['step'];
$this->_sections['Info']['index_next'] = $this->_sections['Info']['index'] + $this->_sections['Info']['step'];
$this->_sections['Info']['first']      = ($this->_sections['Info']['iteration'] == 1);
$this->_sections['Info']['last']       = ($this->_sections['Info']['iteration'] == $this->_sections['Info']['total']);
?>
						<li>
							<div class='face'>
								<a href="">
									<img src="./Images/noface.gif" width='48' height='48'/>
								</a>
							</div>
							<div class='cons blue'>
								<p><?php echo $this->_tpl_vars['ansInfo'][$this->_sections['Info']['index']]['ans_content']; ?>
<span style='color:#888;font-size:12px'>&nbsp;&nbsp;(<?php echo ((is_array($_tmp=$this->_tpl_vars['ansInfo'][$this->_sections['Info']['index']]['ans_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %R') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %R')); ?>
)</span></p>
							</div>
								<?php if ($_SESSION['id'] == $this->_tpl_vars['ask']['ask_uid']): ?>
								<?php if ($this->_tpl_vars['ask']['state'] == 0): ?>
								<a href="javascript:;" askid="<?php echo $this->_tpl_vars['ask']['ask_id']; ?>
" ansid="<?php echo $this->_tpl_vars['ansInfo'][$this->_sections['Info']['index']]['ans_id']; ?>
" id="accept" class='adopt-btn'>采纳</a>
								<?php endif; ?>
								<?php else: ?>
								<?php endif; ?>
							
						</li>
						<?php endfor; endif; ?>
					</ul>
					<div class='page'>
						<a href="">1</a>
						<a href="">2</a>
						<a href="">3</a>
						<a href="">4</a>
					</div>
				</div>
				<div id='other-ask'>
					<p class='title'>待解决的相关问题</p>
					<table>
					<?php unset($this->_sections['noAccept']);
$this->_sections['noAccept']['loop'] = is_array($_loop=$this->_tpl_vars['noAccept']) ? count($_loop) : max(0, (int)$_loop); unset($_loop);
$this->_sections['noAccept']['name'] = 'noAccept';
$this->_sections['noAccept']['max'] = (int)4;
$this->_sections['noAccept']['show'] = true;
if ($this->_sections['noAccept']['max'] < 0)
    $this->_sections['noAccept']['max'] = $this->_sections['noAccept']['loop'];
$this->_sections['noAccept']['step'] = 1;
$this->_sections['noAccept']['start'] = $this->_sections['noAccept']['step'] > 0 ? 0 : $this->_sections['noAccept']['loop']-1;
if ($this->_sections['noAccept']['show']) {
    $this->_sections['noAccept']['total'] = min(ceil(($this->_sections['noAccept']['step'] > 0 ? $this->_sections['noAccept']['loop'] - $this->_sections['noAccept']['start'] : $this->_sections['noAccept']['start']+1)/abs($this->_sections['noAccept']['step'])), $this->_sections['noAccept']['max']);
    if ($this->_sections['noAccept']['total'] == 0)
        $this->_sections['noAccept']['show'] = false;
} else
    $this->_sections['noAccept']['total'] = 0;
if ($this->_sections['noAccept']['show']):

            for ($this->_sections['noAccept']['index'] = $this->_sections['noAccept']['start'], $this->_sections['noAccept']['iteration'] = 1;
                 $this->_sections['noAccept']['iteration'] <= $this->_sections['noAccept']['total'];
                 $this->_sections['noAccept']['index'] += $this->_sections['noAccept']['step'], $this->_sections['noAccept']['iteration']++):
$this->_sections['noAccept']['rownum'] = $this->_sections['noAccept']['iteration'];
$this->_sections['noAccept']['index_prev'] = $this->_sections['noAccept']['index'] - $this->_sections['noAccept']['step'];
$this->_sections['noAccept']['index_next'] = $this->_sections['noAccept']['index'] + $this->_sections['noAccept']['step'];
$this->_sections['noAccept']['first']      = ($this->_sections['noAccept']['iteration'] == 1);
$this->_sections['noAccept']['last']       = ($this->_sections['noAccept']['iteration'] == $this->_sections['noAccept']['total']);
?>
						<tr>
							<td class='t1'><a href="?m=Index&c=Ans&a=answer&aid=<?php echo $this->_tpl_vars['noAccept'][$this->_sections['noAccept']['index']]['ask_id']; ?>
"><?php echo $this->_tpl_vars['noAccept'][$this->_sections['noAccept']['index']]['ask_content']; ?>
</a></td>
							<?php if ($this->_tpl_vars['noAccept'][$this->_sections['noAccept']['index']]['ans_content']): ?>
							<td><?php echo $this->_tpl_vars['noAccept'][$this->_sections['noAccept']['index']]['count']; ?>
&nbsp;回答</td>
							<?php else: ?>
							<td>0&nbsp;回答</td>
							<?php endif; ?>
							<td><?php echo ((is_array($_tmp=$this->_tpl_vars['noAccept'][$this->_sections['noAccept']['index']]['ask_time'])) ? $this->_run_mod_handler('date_format', true, $_tmp, '%Y-%m-%d %R') : smarty_modifier_date_format($_tmp, '%Y-%m-%d %R')); ?>
</td>
						</tr>
					<?php endfor; endif; ?>
					</table>
				</div>
			</div>
			
		<!-- 右侧 -->
		<div id='right'>
		<?php if ($_SESSION['id']): ?>
		<div class='userinfo'>
			<dl>
				<dt>
					<a href=""><img src="" width='48' height='48' alt="占位符"/></a>
				</dt>
				<dd class='username'>
					<a href="">
						<b></b>
					</a>
					<a href="">
						<i class='level lv1' title='Level 1'></i>
					</a>
				</dd>
				<dd>金币：<a href="" style="color: #888888;">20<b class='point'></b></a></dd>
				<dd>经验值：200</dd>
			</dl>
			<table>
				<tr>
					<td>回答数</td>
					<td>采纳率</td>
					<td class='last'>提问数</td>
				</tr>
				<tr>
					<td><a href="">200</a></td>
					<td><a href="">20%</a></td>
					<td class='last'><a href="">回答数</a></td>
				</tr>
			</table>
			<ul>
				<li><a href="">我提问的</a></li>
				<li><a href="">我回答的</a></li>
			</ul>
		</div>
		<?php else: ?>
		<div class='r-login'>
			<span class='login'><i></i>&nbsp;登录</span>
			<span class='register'><i></i>&nbsp;注册</span>
		</div>
		<?php endif; ?>
	<div class='clear'></div>
	<div class='star'>
		<p class='title'>后盾问答之星</p>
		<span class='star-name'>本日回答问题最多的人</span>
			<div class='star-info'>
				<div>
					<a href="" class='star-face'>
						<img src="" width='48px' height='48px' alt="头像站位"/>
					</a>
					<ul>
						<li><a href="">后盾网</a></li>
						<i class='level lv1' title='Level 1'></i>
					</ul>
				</div>
				<ul class='star-count'>
					<li>回答数：<span>100</span></li>
					<li>采纳率：<span>20%</span></li>
				</ul>
			</div>
		<span class='star-name'>历史回答问题最多的人</span>

		<div class='star-info'>
			<div>
				<a href="" class='star-face'>
					<img src="" width='48px' height='48px' alt="头像站位"/>
				</a>
				<ul>
					<li><a href="">后盾网</a></li>
					<i class='level lv1' title='Level 1'></i>
				</ul>
			</div>
			<ul class='star-count'>
				<li>回答数：<span>200</span></li>
				<li>采纳率：<span>100%</span></li>
			</ul>
		</div>
	</div>
	<div class='star-list'>
		<p class='title'>后盾问答助人光荣榜</p>
		<div>
			<ul class='ul-title'>
				<li>用户名</li>
				<li style='text-align:right;'>帮助过的人数</li>
			</ul>
			<ul class='ul-list'>
				<li>
					<a href=""><i class='rank r1'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r2'></i>houdunwang.com</a>
					<span>100</span>
				</li>
				<li>
					<a href=""><i class='rank r3'></i>houdunwang.com</a>
					<span>100</span>
				</li>				
			</ul>
		</div>
	</div>
</div>
<!-- ---右侧结束---- -->
			
		</div>

	</div>
	
<!--------------------中部结束-------------------->

<!-- 底部 -->
	<div id='bottom'>
		<p>Copyright © 2013 Qihoo.Com All Rights Reserved 后盾网</p>
		<p>京公安网备xxxxxxxxxxxx</p>
	</div>
<!--[if IE 6]>
    <script type="text/javascript" src="./Js/iepng.js"></script>
    <script type="text/javascript">
    	DD_belatedPNG.fix('.logo','background');
        DD_belatedPNG.fix('.nav-sel a','background');
        DD_belatedPNG.fix('.ask-cate i','background');
    </script>
<![endif]-->
<script type="text/javascript" src="<?php echo @__VIEW__; ?>
View/<?php echo @CONTROLLER; ?>
/js.js"></script>
</body>
</html>
<!-- 底部结束 -->